//引入插件
import Vue from 'vue'
import Vuex from 'vuex'
import home from './home'
import search from './search'
import detail from './detail'
//注册插件
Vue.use(Vuex)

//创建实例
const store = new Vuex.Store({
    modules:{
        home,
        search,
        detail
    }
})

export default store


